const path = require('path');

module.exports = {
  mode: 'production',
  // mode: 'development',
  experiments: {
    outputModule: true
  },
  entry: {
    pdf: './src/src/pdf.js',
    ['pdf.worker']: './src/src/pdf.worker.js',
  },
  output: {
    clean: true,
    path: path.resolve(__dirname, 'dist'),
    filename: '[name].js',
    library: {
      // name: '[name]',
      type: 'module'
    }
  },

}